home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / cmdity / yk212src.lha / Yak_2.12_Src / WBStartup / Include / DigitalClock.h < prev    next >
C/C++ Source or Header  |  1995-12-21  |  2KB  |  74 lines

  1. /* Exported functions */
  2.  
  3. #ifndef PREFS
  4. extern int DC_F_Init(void);
  5.  
  6. extern void DC_F_DisableClock(void);
  7.  
  8. extern void DC_F_EnableClock(void);
  9.  
  10. extern void DC_F_ProcessMsg(long sig);
  11.  
  12. extern void DC_F_CleanUp(void);
  13. #endif
  14.  
  15. extern void DC_F_Set_Default(void);
  16.  
  17. #ifndef CONV
  18. extern APTR ReadDigitalClock(UBYTE *chunkbuf, ULONG size);
  19. #endif
  20.  
  21. #if defined(PREFS) || defined(CONV)
  22. APTR WriteDigitalClock(struct IFFHandle *iff, UBYTE *chunkbuf);
  23. #endif
  24. /* Data structures */
  25.  
  26. #ifndef PREFS
  27. extern ULONG DC_V_TimerSig;
  28. #endif
  29.  
  30. typedef enum 
  31. {
  32.     DC_C_WorkbenchScreen = 0,
  33.     DC_C_FrontScreen = 1,
  34.     DC_C_FrontPubScreen = 2,
  35.     DC_C_DefPubScreen = 3,
  36.     DC_C_ScreensByPattern = 4
  37. } DC_T_ScreenSelection;
  38.  
  39. typedef enum 
  40. {
  41.     DC_C_FormatDos = FORMAT_DOS,
  42.     DC_C_FormatInt = FORMAT_INT,
  43.     DC_C_FormatUsa = FORMAT_USA,
  44.     DC_C_FormatCdn = FORMAT_CDN,
  45.     DC_C_LocaleDateFormat
  46. } DC_T_DateFormat;
  47.  
  48.  
  49. #define DC_C_UNACTIVE 0
  50. #define DC_C_ACTIVE   1
  51.  
  52.  
  53. typedef struct DC_S_Config
  54. {
  55.     UWORD State;        /* clock state, 0 = not active            */
  56.     UWORD Offset;       /* Number of pixels between screen depth gadget and clock text */
  57.     LONG Interval;      /* Number of seconds between 2 clock updates */
  58.     UWORD ShowDate;     /* Show date in addition to the current time */
  59.     UWORD ShowDay;      /* Show day in addition to the current time  */
  60.     UWORD ShortDay;     /* Day name will be truncated to the 3 first characters */
  61.     UWORD ShowSecs;     /* Display seconds as well as hours and minutes */
  62.     DC_T_DateFormat DateFormat;  /* Set the format of the date display */
  63.     char *LocaleDateFormat;   /* Set the format of the date using locale library */
  64.     DC_T_ScreenSelection ScreenSelection; /* Display clock only on public screens */
  65.     PatternData ScreenPatternData; /* Screens where the clock is allowed */
  66.     UWORD TimerRunning;
  67. } DC_T_Config;
  68.  
  69.  
  70. /* Current configuration of the clock */
  71.  
  72. extern DC_T_Config DC_V_Config;
  73.  
  74.